package com.net.tkc.pro.service;

import com.net.tkc.pro.entity.Collect;
import com.net.tkc.pro.impl.CollectImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class CollectService implements CollectImpl {
    @Resource
    CollectImpl collectImpl;
    @Override
    public int addCollect(Collect Collect) {
        return collectImpl.addCollect(Collect);
    }

    @Override
    public int delCollect(int id) {
        return collectImpl.delCollect(id);
    }

    @Override
    public List<Collect> getPostList(int uid) {
        return collectImpl.getPostList(uid);
    }

    @Override
    public List<Collect> getUserList(int pid) {
        return collectImpl.getUserList(pid);
    }
}
